#include <stdio.h>
#define LEN 20
void fun(char a[],char b[],int n);
main()
{	 	 		 	 	  
    char str1[LEN],str2[LEN];
    int n;
    printf("Enter the string:\n");
    gets(str1);//1
    printf("Enter the position of the string deleted:");
    scanf("%d",&n);//1
    fun(str1,str2,n);//1
    printf("The new string is :%s\n",str2);

}	 	 		 	 	  

void fun(char a[],char b[],int n)
{	 	 		 	 	  
    int i,k=0;//1
    for(i=0;a[i]!='\0';i++)//3
    {	 	 		 	 	  
        if(i!=n)   //1
        {	 	 		 	 	  
            b[k]=a[i];   //1
            k++;    //1
        }

    }
    b[k]='\0';//1
}